import request from '@/utils/request'
// 获取角色列表
export const fetchRoleListAPI = params => request.get('/sys/role', { params })
// 删除接口
export const fetchDelRole = id => request.delete(`/sys/role/${id}`)
// 新增接口
export const addlistAPI = obj => request.post('/sys/role', obj)
// 获取角色详情
export const detailsAPI = id => request.get(`/sys/role/${id}`)
// 修改角色
export const ModifyTheAPI = data => request.put(`/sys/role/${data.id}`, data)
// 获取权限点
export const assignPermissionAPI = data => request.put('/sys/role/assignPrem', data)
